from dataclasses import dataclass
@dataclass
class TestConfig:
    """测试环境配置"""
    host_merchant = 'https://api.admin.merchant.java.crmeb.net'
    username_merchant = '18292417675'
    password_merchant = '000000'



@dataclass
class DevelopmentConfig():
    """开发环境配置"""
    pass

@dataclass
class ProductionConfig():
    """生产环境配置"""
    pass


ENV_MAPPING = {
    '测试环境': TestConfig,
    '开发环境': DevelopmentConfig,
    '生产环境': ProductionConfig,
}

@dataclass
class Url:
    """接口url"""
    host_merchant = 'https://api.admin.merchant.java.crmeb.net'                             # 秒杀商品接口host
    url_merchant_seckill_product_page = '/api/admin/merchant/seckill/product/page'          # 秒杀商品-秒杀商品列表接口
    url_merchant_seckill_product_add = '/api/admin/merchant/seckill/product/add'            # 秒杀商品-秒杀商品添加接口
    url_merchant_seckill_product_withdraw = '/api/admin/merchant/seckill/product/withdraw'  # 秒杀商品-秒杀商品撤回接口
    url_merchant_seckill_product_delete = '/api/admin/merchant/seckill/product/delete'      # 秒杀商品-秒杀商品删除接口
    url_merchant_seckill_activity_page = '/api/admin/merchant/seckill/activity/page'        # 秒杀商品-秒杀活动列表接口
